<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::rule('/', 'index'); // 首页访问路由
Route::group(function () {
	Route::rule('jie/:id', 'article/detail'); 
	Route::rule('column/:ename','article/cate');
	Route::rule('add','article/add');
	Route::rule('del:id','/article/delete');
});

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

//Route::get('captcha/[:config]','\\think\\captcha\\CaptchaController@index');

Route::rule('login','login/index');
Route::rule('reg','Login/reg')
	->middleware(\app\middleware\CheckRegister::class);